package entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;

public class Shiyan {

    private long id;
    private String number;
    private String name;
    private String names;
    private long companyid;
    private double money;

    private double moneys;

    private long num;
    private long nums;

    private String specid;
    private long colorid;
    private String order;

    private long ietyoe;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")

    private java.sql.Date date;

    private long supplierid;
    private long typeid;
    private long customerid ;

    private long warehouseid;

    private long agent;

    private Customer customer;
    private Supplier supplier;
    private Commtype commtype;
    private Colortype colortype;
    private Comptype comptype;
    private Warehouse warehouse;
    private Staff staff;


    public String getNames() {
        return names;
    }

    public void setNames(String names) {
        this.names = names;
    }

    public String toString (Shiyan a){
        return (a.id+a.number+a.name+a.companyid+a.money+a.moneys+a.num+a.nums+a.specid+a.colorid
        +a.order+a.ietyoe+a.date+a.supplierid+a.typeid+a.customerid+a.warehouseid+a.agent
        +a.customer+a.supplier+a.commtype+a.colortype+a.commtype+a.warehouse+a.staff);
    }

















    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getCompanyid() {
        return companyid;
    }

    public void setCompanyid(long companyid) {
        this.companyid = companyid;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public double getMoneys() {
        return moneys;
    }

    public void setMoneys(double moneys) {
        this.moneys = moneys;
    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public long getNums() {
        return nums;
    }

    public void setNums(long nums) {
        this.nums = nums;
    }

    public String getSpecid() {
        return specid;
    }

    public void setSpecid(String specid) {
        this.specid = specid;
    }

    public long getColorid() {
        return colorid;
    }

    public void setColorid(long colorid) {
        this.colorid = colorid;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public long getIetyoe() {
        return ietyoe;
    }

    public void setIetyoe(long ietyoe) {
        this.ietyoe = ietyoe;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public long getSupplierid() {
        return supplierid;
    }

    public void setSupplierid(long supplierid) {
        this.supplierid = supplierid;
    }

    public long getTypeid() {
        return typeid;
    }

    public void setTypeid(long typeid) {
        this.typeid = typeid;
    }

    public long getCustomerid() {
        return customerid;
    }

    public void setCustomerid(long customerid) {
        this.customerid = customerid;
    }

    public long getWarehouseid() {
        return warehouseid;
    }

    public void setWarehouseid(long warehouseid) {
        this.warehouseid = warehouseid;
    }

    public long getAgent() {
        return agent;
    }

    public void setAgent(long agent) {
        this.agent = agent;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public Commtype getCommtype() {
        return commtype;
    }

    public void setCommtype(Commtype commtype) {
        this.commtype = commtype;
    }

    public Colortype getColortype() {
        return colortype;
    }

    public void setColortype(Colortype colortype) {
        this.colortype = colortype;
    }

    public Comptype getComptype() {
        return comptype;
    }

    public void setComptype(Comptype comptype) {
        this.comptype = comptype;
    }

    public Warehouse getWarehouse() {
        return warehouse;
    }

    public void setWarehouse(Warehouse warehouse) {
        this.warehouse = warehouse;
    }

    public Staff getStaff() {
        return staff;
    }

    public void setStaff(Staff staff) {
        this.staff = staff;
    }




}
